#include "csv.h"
#include "Bayes.h"



/*
bool CBayes::Learn(CCsv &csv)
{
	
	return true;
}
*/
/*
CLASS new_class(string class_name)
{
	return make_pair(class_name,1);
}

CLASS new_value(std::vector<CLASS> ::iterator it, string val, string class_name)
{
	return make_pair(class_name,1);
}

*/

bool CBayes::LearnRecord(csvVector &cl)
{
	for (int i=0;i<cl.size();i++)
	{

	}
	return true;
}

bool CBayes::Learn(string &filename)
{
	CCsv csv;   
	TCsvCallback<CBayes> i_CallbackOutput;
    
    i_CallbackOutput.SetCallback(this, &CBayes::LearnRecord);
    
    csv.AnalyzeCsv(filename,&i_CallbackOutput);
	//csv.Read(filename);   

	return true;
}